Returns a service of a specific type.
'Declaration
Public Overloads Function Get(Of )() As
'Usage
Dim instance As ServiceCollection
Dim value As
value = instance.Get(Of TService)()
public:
Getgeneric<typename >
();
Type Parameters
- TService
- The type of the service to return.
Return Value
A service object of the requested type. Null if the service doesn't exists.